package com.coffee.admin.api.platform.service;

import com.coffee.admin.api.platform.query.PlatformRolePermissionQuery;
import com.coffee.admin.api.platform.result.PlatformRolePermissionResult;
import com.coffee.core.entity.Page;
import com.coffee.core.entity.PagerInfo;
import com.coffee.core.exception.BusinessException;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface PlatformRolePermissionService {

	Page<PlatformRolePermissionResult> getPager(PlatformRolePermissionQuery param, PagerInfo pr);
	
	Integer count(PlatformRolePermissionQuery param);
	
	PlatformRolePermissionResult getDetail(Integer id);
	
	List<PlatformRolePermissionResult> getList(PlatformRolePermissionQuery param, PagerInfo pr);
	
	List<PlatformRolePermissionResult> getList(PlatformRolePermissionQuery param);
	
	List<PlatformRolePermissionResult> getList();

	void delete(Integer id);

	void addOrUpdate(PlatformRolePermissionResult result)throws BusinessException;
	
	Map<Integer,PlatformRolePermissionResult> getItemMap(Set<Integer> idSet);
	
	Map<Integer,PlatformRolePermissionResult> getItemMap();
	
}